Freescale Semiconductor /MK30D7 /FTM2 /QDCTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as QDCTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (0)QUADEN 0 (0)TOFDIR 0 (0)QUADIR 0 (0)QUADMODE 0 (0)PHBPOL 0 (0)PHAPOL 0 (0)PHBFLTREN 0 (0)PHAFLTREN

PHAFLTREN=0, PHAPOL=0, PHBPOL=0, PHBFLTREN=0, QUADMODE=0, TOFDIR=0, QUADEN=0, QUADIR=0

Description

Quadrature Decoder Control and Status

Fields

QUADEN

Quadrature Decoder Mode Enable

0 (0): Quadrature decoder mode is disabled.

1 (1): Quadrature decoder mode is enabled.

TOFDIR

Timer Overflow Direction in Quadrature Decoder Mode

0 (0): TOF bit was set on the bottom of counting. There was an FTM counter decrement and FTM counter changes from its minimum value (CNTIN register) to its maximum value (MOD register).

1 (1): TOF bit was set on the top of counting. There was an FTM counter increment and FTM counter changes from its maximum value (MOD register) to its minimum value (CNTIN register).

QUADIR

FTM Counter Direction in Quadrature Decoder Mode

0 (0): Counting direction is decreasing (FTM counter decrement).

1 (1): Counting direction is increasing (FTM counter increment).

QUADMODE

Quadrature Decoder Mode

0 (0): Phase A and phase B encoding mode.

1 (1): Count and direction encoding mode.

PHBPOL

Phase B Input Polarity

0 (0): Normal polarity. Phase B input signal is not inverted before identifying the rising and falling edges of this signal.

1 (1): Inverted polarity. Phase B input signal is inverted before identifying the rising and falling edges of this signal.

PHAPOL

Phase A Input Polarity

0 (0): Normal polarity. Phase A input signal is not inverted before identifying the rising and falling edges of this signal.

1 (1): Inverted polarity. Phase A input signal is inverted before identifying the rising and falling edges of this signal.

PHBFLTREN

Phase B Input Filter Enable

0 (0): Phase B input filter is disabled.

1 (1): Phase B input filter is enabled.

PHAFLTREN

Phase A Input Filter Enable

0 (0): Phase A input filter is disabled.

1 (1): Phase A input filter is enabled.

Links

() ()